import 'package:yun/generated/json/base/json_convert_content.dart';
import 'package:yun/entity/cpu_reader_entity.dart';

CpuReaderEntity $CpuReaderEntityFromJson(Map<String, dynamic> json) {
	final CpuReaderEntity cpuReaderEntity = CpuReaderEntity();
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		cpuReaderEntity.name = name;
	}
	final String? sSNum = jsonConvert.convert<String>(json['SSNum']);
	if (sSNum != null) {
		cpuReaderEntity.sSNum = sSNum;
	}
	final String? cardNum = jsonConvert.convert<String>(json['cardNum']);
	if (cardNum != null) {
		cpuReaderEntity.cardNum = cardNum;
	}
	final String? issuingDate = jsonConvert.convert<String>(json['issuingDate']);
	if (issuingDate != null) {
		cpuReaderEntity.issuingDate = issuingDate;
	}
	final String? terminalNum = jsonConvert.convert<String>(json['terminalNum']);
	if (terminalNum != null) {
		cpuReaderEntity.terminalNum = terminalNum;
	}
	final String? cardResetInfo = jsonConvert.convert<String>(json['cardResetInfo']);
	if (cardResetInfo != null) {
		cpuReaderEntity.cardResetInfo = cardResetInfo;
	}
	final String? expirationDate = jsonConvert.convert<String>(json['expirationDate']);
	if (expirationDate != null) {
		cpuReaderEntity.expirationDate = expirationDate;
	}
	final String? terminalDeviceNum = jsonConvert.convert<String>(json['terminalDeviceNum']);
	if (terminalDeviceNum != null) {
		cpuReaderEntity.terminalDeviceNum = terminalDeviceNum;
	}
	final String? cardCanonicalVersion = jsonConvert.convert<String>(json['cardCanonicalVersion']);
	if (cardCanonicalVersion != null) {
		cpuReaderEntity.cardCanonicalVersion = cardCanonicalVersion;
	}
	final String? cardIdentificationCode = jsonConvert.convert<String>(json['cardIdentificationCode']);
	if (cardIdentificationCode != null) {
		cpuReaderEntity.cardIdentificationCode = cardIdentificationCode;
	}
	final String? administrativeDivisionCodeOfIssuingArea = jsonConvert.convert<String>(json['administrativeDivisionCodeOfIssuingArea']);
	if (administrativeDivisionCodeOfIssuingArea != null) {
		cpuReaderEntity.administrativeDivisionCodeOfIssuingArea = administrativeDivisionCodeOfIssuingArea;
	}
	final String? data = jsonConvert.convert<String>(json['data']);
	if (data != null) {
		cpuReaderEntity.data = data;
	}
	return cpuReaderEntity;
}

Map<String, dynamic> $CpuReaderEntityToJson(CpuReaderEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['name'] = entity.name;
	data['SSNum'] = entity.sSNum;
	data['cardNum'] = entity.cardNum;
	data['issuingDate'] = entity.issuingDate;
	data['terminalNum'] = entity.terminalNum;
	data['cardResetInfo'] = entity.cardResetInfo;
	data['expirationDate'] = entity.expirationDate;
	data['terminalDeviceNum'] = entity.terminalDeviceNum;
	data['cardCanonicalVersion'] = entity.cardCanonicalVersion;
	data['cardIdentificationCode'] = entity.cardIdentificationCode;
	data['administrativeDivisionCodeOfIssuingArea'] = entity.administrativeDivisionCodeOfIssuingArea;
	data['data'] = entity.data;
	return data;
}